﻿namespace GalFrameWork.Service;

public class ContentNavigationService : IContentNavigationService
{
    private IRouteService _routeService;

    public ContentNavigationService(IRouteService routeService)
    {
        _routeService = routeService;
    }

    public async Task NavigateToAsync(string pageKey) =>
        await Shell.Current.GoToAsync(_routeService.GetRoute(pageKey));

    public async Task NavigateToAsync(string pageKey, object parameter) =>
        throw new NotImplementedException();
}
